<%@ page import="java.util.List" %>
<%@ page import="com.foreknow.model.Guestbook" %><%--
  Created by IntelliJ IDEA.
  User: DG
  Date: 2020/2/27
  Time: 19:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/CLEditor1_3_0/jquery.cleditor.css">
    <script src="${pageContext.request.contextPath}/CLEditor1_3_0/jquery.min.js"></script>
    <script src="${pageContext.request.contextPath}/CLEditor1_3_0/jquery.cleditor.js"></script>
    <script>
        $(document).ready(function () {

        })
        $(function () {
            //初始化cleditor插件
            $("#input").cleditor();
        })
    </script>
</head>
<body>





<div class="container">
<%--    不查询 地址 /user/manager?q=update--%>
    <form class="form-horizontal" method="post" action="manager?q=update"  >

<%--        <%--%>
<%--           Guestbook guestbook = (Guestbook) request.getAttribute("guestbook");--%>



<%--        %>--%>


        <fieldset>
            <legend>
                <h1>修改留言的信息</h1>
            </legend>
            <div class="form-group">
                <label for="inputId3" class="col-md-4 control-label">ID:</label>
                <div class="col-md-4">
                    <input type="text" class="form-control" id="inputId3" placeholder="ID" name="id" value="${requestScope.guestbook.id}" readonly="readonly">
                </div>
            </div>
            <div class="form-group">
                <label for="inputName3" class="col-md-4 control-label">姓名:</label>
                <div class="col-md-4">
                    <input type="text" class="form-control" id="inputName3" placeholder="姓名" name="name"  value="${requestScope.guestbook.name}" >
                </div>
            </div>
            <div class="form-group">
                <label for="inputPhone3" class="col-md-4 control-label">电话号码:</label>
                <div class="col-md-4">
                    <input type="text" class="form-control" id="inputPhone3" placeholder="电话号码" name="phone" value="${requestScope.guestbook.phone}">
                </div>
            </div>
            <div class="form-group">
                <label for="inputEmail3" class="col-md-4 control-label">电子邮箱:</label>
                <div class="col-md-4">
                    <input type="text" class="form-control" id="inputEmail3" placeholder="xxxx.@qq.com" name="email" value="${requestScope.guestbook.email}">
                </div>
            </div>
            <div class="form-group">
                <label for="inputTitle3" class="col-md-4 control-label">标题:</label>
                <div class="col-md-4">
                    <input type="text" class="form-control" id="inputTitle3" placeholder="标题" name="title" value="${requestScope.guestbook.title}">
                </div>
            </div>
            <div class="form-group">
                <label  class="col-md-4 control-label">内容:</label>
                <div class="col-md-4">
                    <textarea class="form-control"  name="content" id="input" cols="25" rows="10">${requestScope.guestbook.content}</textarea>

                </div>
            </div>
            <div class="form-group" align="center">
                <button type="submit" class="btn btn-primary btn-lg">修改留言</button>
                <button type="reset" class="btn btn-default btn-lg">重置留言</button>
            </div>
            <legend align=center""></legend>
        </fieldset>

    </form>
</div>
</body>
</html>